<template>
    <div>
        <h3 class="title">{{message}}</h3>
        <button @click="testBtn">点击</button>
        <Movie/>
    </div>
</template>

<script>
import Movie from './Movies.vue'
export default {
    components:{
        Movie
    },
    data(){
        return {
            message:"你好,这里是App.vue",
        }
    },
    methods:{
        testBtn(){
            alert("这里是App.vue里的click方法")
        }
    }
}
</script>

<style>
    .title{
        color: green;
    }
</style>